//
//  DateCollectionViewCell.m
//  iosMathExample
//
//  Created by 李群 on 2021/9/18.
//

#import "DateCollectionViewCell.h"
#import "ConstantUI.h"

@interface DateCollectionViewCell (){
    UILabel *monthLabel;
}
@end

@implementation DateCollectionViewCell

- (void)updateCellWithIndex:(NSInteger)index{
    monthLabel.text = [NSString stringWithFormat:@"%ld", (long)index];
}

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        monthLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, CGRectGetWidth(frame), CGRectGetHeight(frame))];
        monthLabel.textAlignment = NSTextAlignmentCenter;
        monthLabel.textColor = [UIColor blackColor];
        monthLabel.font = [UIFont boldSystemFontOfSize:kFont_Size_24];
        [self addSubview:monthLabel];
    }
    return self;
}

@end
